import 'package:flutter/material.dart';
import 'package:im_flutter_sdk_example/components/custom_swiper/index.dart';
import 'package:im_flutter_sdk_example/jsonserialize/serve/data.dart';
import 'package:im_flutter_sdk_example/utils/global.dart';

class Header extends StatelessWidget {
  final ServeData item;
  Header({Key key, this.item}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Container(
      child: CustomSwiper(
        [G.fullImgPath(item.advertisingMap)],
        height: G.screenHeight() > 800 ? 220 : 208,
      ),
    );
  }
}
